package cn.starrysky108.simpleerp.core.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @author Carl Lee
 */
public enum StoreActivityTypeEnum {
    /**
     * 0-->不参加活动
     */
    NONE(0, "不参加活动"),
    /**
     * 1-->待审核
     */
    FULL_REDUCTION(1, "满减活动");

    /**
     * 枚举代码
     */
    @EnumValue
    private final int code;
    /**
     * 序列化返回值
     */
    @JsonValue
    private final String description;

    StoreActivityTypeEnum(int code, String description) {
        this.code = code;
        this.description = description;
    }

    public int getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }

    @Override
    public String toString() {
        return "OrderTypeEnum{" +
                "code=" + code +
                ", description='" + description + '\'' +
                '}';
    }
}
